<%-------------------------------------------------------------------
 * 页面名称：innerMenuGateway.jsp
 * 功能描述：登录后页面Sitemesh菜单页面－网关企业用户菜单
 * Action  :
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ page import="java.util.*"%>
<%@ page import="cn.agiledata.bank.common.util.Constant"%>
<%@ page import="cn.agiledata.bank.account.service.IAccountConst"%>
<%@ page import="cn.agiledata.bank.account.service.AccountSummary"%>
<%
	String path = request.getContextPath();
	// 一级菜单状态
	Map mapMenuLv1 = new HashMap();
	// 二级菜单状态
	Map mapMenuLv2 = new HashMap();

	AccountSummary account = (AccountSummary) request.getSession()
			.getAttribute("userinfo");
	String name = account.getUser().getUsername();
%>
<logic:present name="modual">
	<%
		// 一级菜单功能类型
		String strModualLv1 = (String) session.getAttribute("modual");
		if (strModualLv1 != null) {
			// 设置菜单选中状态
			if (strModualLv1.equals("space")) {
				mapMenuLv1.put("space", "id='current'"); // 我的账户
			}
			if (strModualLv1.equals("return")) {
				mapMenuLv1.put("return", "id='current'"); // 充值提现
			}
			if (strModualLv1.equals("custInfo")) {
				mapMenuLv1.put("custInfo", "id='current'"); // 付款收款
			}
			if (strModualLv1.equals("manage")) {
				mapMenuLv1.put("manage", "id='current'"); // 交易管理
			}
		}

		String realModual = request.getParameter("modual");
		if (realModual == null) {
			String url = request.getRequestURL().toString();
			if (url.indexOf("historyTransQuery.do") > 0) {//历史交易查询
				realModual = "manage$history";
			} else if (url.indexOf("returnApplyList.do") > 0) {//退款申请
				realModual = "return$returnApply";
			} else if (url.indexOf("esPerPayTransPayDetail.do") > 0) {//退款确认
				realModual = "return$waitingPay";
			} else if (url.indexOf("waitingPayList.do") > 0
			|| url.indexOf("toWaitPay.do") > 0) {//担保退款查询
				realModual = "return$waitingPay";
			} else if (url.indexOf("toQueryPage.do") > 0) {//返回退款确认列表
				realModual = "manage$print";
			} else if (url.indexOf("returnTransQuery.do") > 0) {//退款申请交易查询
				realModual = "return$returnApply";
			} else if (url.indexOf("gateWayTransQuery.do") > 0) {//网关客户银行结算查询
				realModual = "manage$gateWayTransQuery";
			} else if (url.indexOf("corpAccountUserInfo.do") > 0
			|| url.indexOf("modifyCorpAccountUserInfo.do") > 0) {//网关客户银行结算查询
				realModual = "custInfo$modify";
			} else if (url.indexOf("UserSetup.do") > 0) {
				realModual = "userSetup";
			} else if (url.indexOf("toAcctLimit.do") > 0) {
				realModual = "toAcctLimit";
			} else if (url.indexOf("accountList.do") > 0) {
				realModual = "accountList";
			} else if (url.indexOf("getPeerInnerAccountList.do") > 0) {
				realModual = "getPeerInnerAccountList";
			} else if (url.indexOf("modual=space") > 0) {
				realModual = "myspace";
			} else {
				realModual = "null";
			}
		} else if (realModual.equals("pay$merchant")) {
			realModual = "pay$innerPay";
		} else if (realModual.equals("space$scoresrule")) {
			realModual = "space$scores";
		}
	%>
	<div class="main">
		<div class="head">
			<a style="margin-left:625px;color:#0099CC;"><%=name%>，欢迎您！</a><a
				href="<%=path%>/toCompanyRegister.do">注册</a><a href="#"
				onClick="quit()">安全退出</a>
			<div class="login_logo">
				<!--  <img src="<%=path%>/images/LOGO-4_a.jpg" />-->
			</div>
		</div>
		<!-- 页面左边部分结束 -->
		<div class="content">
			<div class="content_left">
				<jsp:include page="left.jsp?current=myspace" />
			</div>
			<div class="content_right">
				<div class="navigation_href">
					<!-- 页面导航部分开始 -->
					<table cellpadding="0" cellspacing="0">
						<tr>
							<td class="menu_left"></td>
							<td class="menu_maddle" valign="top">
								<div class="menu">
									<div style="width:160px;">
										<a href="<%=path%>/route.do?modual=space"
											<%=mapMenuLv1.get("space")%>>我的帐户</a>

									</div>
									<div style="width:120px;">
										<a href="<%=path%>/route.do?modual=manage$gateWayTransQuery"
											<%=mapMenuLv1.get("manage")%>>交易管理</a>
									</div>
									<div style="width:140px;">
										<a href="<%=path%>/route.do?modual=return$returnApply"
											<%=mapMenuLv1.get("return")%>>退款管理</a>
									</div>
									<div style="width:140px;">
										<a href="<%=path%>/route.do?modual=custInfo$modify"
											<%=mapMenuLv1.get("custInfo")%>>用户资料管理</a>
									</div>
								</div>
								<logic:equal name="modual" value="space" scope="session">
									<div class="futitle">
										<table>
											<tr>
												<td>
													<a href="<%=path%>/route.do?modual=space$account"
														<%if (realModual.equals("space$account") || realModual.equals("space")){%>
														class="bluefont12b" <%}else{%> class="bluefont12drop"
														<%}%>>账户信息</a>
												</td>
											</tr>
										</table>
									</div>
								</logic:equal>
								<logic:equal name="modual" value="manage" scope="session">
									<div class="paytitle" style="margin-left:160px;">
										<table>
											<tr>
												<td>
													<a
														class="<%=realModual.equals("manage$gateWayTransQuery") ? "bluefont12b"
							: "bluefont12drop"%>"
														href="<%=path%>/route.do?modual=manage$gateWayTransQuery">查询银行结算</a>
												</td>
												<td width="28" style="text-align:center;">
													<a>|</a>
												</td>
												<td style="text-align:center;">
													<a href="<%=path%>/route.do?modual=manage$history"
														class="<%=realModual.equals("manage$history") ? "bluefont12b"
					: "bluefont12drop"%>">交易明细查询</a>
												</td>
												<td width="28" style="text-align:center;">
													<a>|</a>
												</td>
												<td style="text-align:center;">
													<a href="<%=path%>/route.do?modual=manage$query"
														class="<%=realModual.equals("manage$query") ? "bluefont12b"
					: "bluefont12drop"%>">待处理交易</a>
												</td>
												<td width="28" style="text-align:center;">
													<a>|</a>
												</td>
												<td style="text-align:center;">
													<a href="<%=path%>/route.do?modual=manage$print"
														class="<%=realModual.equals("manage$print") ? "bluefont12b"
					: "bluefont12drop"%>">对账单打印</a>
												</td>
											</tr>
										</table>
									</div>
								</logic:equal>
								<logic:equal name="modual" value="return" scope="session">
									<div class="tixiantitle">
										<table>
											<tr>
												<td>
													<a href="<%=path%>/route.do?modual=return$returnApply"
														class="<%=realModual.equals("return$returnApply") ? "bluefont12b"
							: "bluefont12drop"%>">退款申请</a>
												</td>
												<td width="28">
													<a>|</a>
												</td>
												<td>
													<a href="<%=path%>/route.do?modual=return$waitingPay"
														class="<%=realModual.equals("return$waitingPay") ? "bluefont12b"
							: "bluefont12drop"%>">退款确认</a>
												</td>
											</tr>
										</table>
									</div>
								</logic:equal>
								<logic:equal name="modual" value="custInfo" scope="session">
									<div class="futitle" style="margin-left: 450px;">
										<!-- 账户信息 -->
										<table>
											<tr>
												<td>
													<a href="<%=path%>/route.do?modual=custInfo$modify"
														class="<%=realModual.equals("custInfo$modify") ? "bluefont12b"
					: "bluefont12drop"%>">企业信息</a>
												</td>
											</tr>
										</table>
									</div>
								</logic:equal>
							</td>
							<td class="menu_right"></td>
						</tr>
					</table>
				</div>
			</div>
</logic:present>
